package com.cyz.common.dto;

import com.cyz.common.validated.AddGroup;
import com.cyz.common.validated.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
public class ShopTypeDto {

    @Null(message = "ID不能赋值",groups = AddGroup.class)
    @NotNull(message = "ID不能为空",groups = UpdateGroup.class)
    private Integer id;
    private String name;
}
